package com.suma.platform.core.api;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.github.pagehelper.PageInfo;
import com.nfsq.platform.utils.bean.ResultBean;
import com.suma.platform.core.model.User;
import com.suma.platform.core.model.qo.WechatUserQO;

/**
 * @author suma
 * @date 2018/1/23 上午9:45
 */
@RequestMapping("/suma-open-api")
public interface SumaOpenApi {

	@RequestMapping(value = "/user/getWechatUserByOpenid", method = RequestMethod.POST)
	ResultBean<User> getWechatUserByOpenid(@RequestParam("openid") String openid);

	@RequestMapping(value = "/user/insertWechatUser", method = RequestMethod.POST)
	ResultBean<Integer> insertWechatUser(@RequestBody User wechatUser);

	@RequestMapping(value = "/user/listWechatUsers", method = RequestMethod.POST)
	ResultBean<PageInfo<User>> listWechatUsers(@RequestBody WechatUserQO wechatUserQO);
}
